package cn.taleo.common.mybatis;


import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BaseDao {

    @InsertProvider(type = BaseProvider.class,method = "save")
    @Options(useGeneratedKeys = true,keyProperty="id")
    void save(@Param("obj") Object obj, @Param("table") String table);

}
